package dominio;

import javax.persistence.Entity;
import javax.persistence.PrimaryKeyJoinColumn;
import javax.persistence.Table;

@Entity
@Table(name="coordinadores")
@PrimaryKeyJoinColumn(name = "id", referencedColumnName = "id")
public class Coordinador extends Integrante {

	private static final long serialVersionUID = 1L;

	private boolean interino;

	public boolean isInterino() {
		return interino;
	}

	public void setInterino(boolean interino) {
		this.interino = interino;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = super.hashCode();
		result = prime * result + (interino ? 1231 : 1237);
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (!super.equals(obj))
			return false;
		if (getClass() != obj.getClass())
			return false;
		Coordinador other = (Coordinador) obj;
		if (interino != other.interino)
			return false;
		return true;
	}
	
}
